package com.api.shopapi.service.impl;

import com.api.shopapi.entity.DishesPlanNoonItem;
import com.api.shopapi.mapper.DishesPlanNoonItemMapper;
import com.api.shopapi.service.DishesPlanNoonItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DishesPlanNoonItemServiceImplOne")
public class DishesPlanNoonItemServiceImplOne implements DishesPlanNoonItemService {

    @Autowired
    private DishesPlanNoonItemMapper dishesPlanNoonItemMapper;

    @Override
    public
    int insert(DishesPlanNoonItem dishesPlanNoonItem){
        return dishesPlanNoonItemMapper.insert(dishesPlanNoonItem);
    }

    @Override
    public
    int delete(String dishesPlanNoonItemCode){
        return dishesPlanNoonItemMapper.delete(dishesPlanNoonItemCode);
    }

    @Override
    public
    int update(DishesPlanNoonItem dishesPlanNoonItem){
        return dishesPlanNoonItemMapper.update(dishesPlanNoonItem);
    }

    @Override
    public
    DishesPlanNoonItem getByDishesPlanNoonItemCode(String dishesPlanNoonItemCode){
        return dishesPlanNoonItemMapper.getByDishesPlanNoonItemCode(dishesPlanNoonItemCode);
    }

    @Override
    public
    List<DishesPlanNoonItem> ListByDishesPlanNoonCode(String dishesPlanNoonCode){
        return dishesPlanNoonItemMapper.ListByDishesPlanNoonCode(dishesPlanNoonCode);
    }

}
